package com.chinasoft.userservice.service;


import com.chinasoft.ms.dto.UserDTO;
import com.chinasoft.ms.pojo.PageItem;
import com.chinasoft.ms.pojo.User;

import java.util.List;

public interface UserService  {
   /* PageItem<User> queryByPage(Integer current, Integer size);

    PageItem<User> queryByPageCond(Integer pageNum, Integer pageSize, User query);

    boolean deleteUser(Long id);

    Boolean updateUser(User user);
*/
    User checkUser(User user);

    User getUserWithId(Long id);
    PageItem<UserDTO> queryByPageCond(Integer pageNum, Integer pageSize, User query);
    boolean addUser(UserDTO userDTO);
    boolean updateUser(UserDTO userDTO);
    boolean deleteUser(Long id);
    boolean deleteBatch(List<Long> ids);

    boolean register(UserDTO userDTO);

    Integer getUserRoleWithId(Long id);
}
